<?php //
//require_once ("../../../JqueryTabs.php");

require_once('../../../metodosGlobales.php');

function BuscarHCDReal(&$resultadoHC){
    conectarDB();
    $queryHC1="SELECT * FROM historiaclinica WHERE idHistoriaClinica='".$_GET['PXHC']."'";
    $resultHC1=mysql_query($queryHC1);
    $resultadoHC=mysql_fetch_array($resultHC1);
    mysql_close();
}

function BuscarHCDTruncada(&$resultadoHC){
    conectarDB();
    $queryHC="SELECT * FROM historiaclinica WHERE idHistoriaClinica=1";
    $resultHC=mysql_query($queryHC);
    $resultadoHC=mysql_fetch_array($resultHC);
    
    mysql_close();
}


if($_GET['PXHC']!=null){
 //   echo "<script> alert('Pase');</script>";
   BuscarHCDReal( $resultadoHC);
}else{
   
   // echo "<script> alert('Pase1');</script>";
    BuscarHCDTruncada($resultadoHC);
}

?>
    <link type='image/x-icon' rel="icon" href="../../../images/LogoNoTitle.ico" />
    
	<link rel="stylesheet" href="../../../jquery/development-bundle/themes/base/jquery.ui.all.css">
	<!-- <script src="../../../jquery/development-bundle/jquery-1.4.4.js"></script>    -->
	<script src="../../../jquery/development-bundle/ui/jquery.ui.core.js"></script>
	<script src="../../../jquery/development-bundle/ui/jquery.ui.widget.js"></script>
	<script src="../../../jquery/development-bundle/ui/jquery.ui.tabs.js"></script>
		<script src="../../../jquery/development-bundle/ui/jquery.ui.datepicker.js"></script>
	
	  <link rel="stylesheet" href="../../../jquery/development-bundle/demos/demos.css">
	<script>
	$(function() {
		$( "#tabs1" ).tabs();
	});
	
	</script>
    
<div class="demo" >

<div id="tabs1">
	<ul>
		<li><a href="#tabs1-1">General</a></li>
		<li><a href="#tabs1-2">Estudios Cl&iacute;nicos</a></li>
		<li><a href="#tabs1-3" >Estudios Cardiol&oacute;gicos</a></li>
		<li><a href="#tabs1-4" >Potenciales Evocados</a></li>
		<li><a href="#tabs1-5" >Resonancias</a></li>		
	</ul>
	
	<div id="tabs1-1">
		<table width="100%" class="searchPanels" style="z-index: -1">			
			
			<tr>
				<td height="620px" valign="top" width="100%" >	
			  	  <?PHP 
                     require_once ('HCDD/GeneralNeuro.php'); ?>
				</td>
			</tr>	  	  
		</table>
	</div>
	
	<div id="tabs1-2">
		<table width="100%" class="searchPanels" style="z-index: -1">			
			<tr>
				<td height="620px" width="100%" valign="top">	
			  	  <?PHP  
                     require_once('HCDD/EstudiosLabNeuro.php'); ?>
				</td>
			</tr>	  	  
		</table>
		 
	</div>
	<div id="tabs1-3">
			<table width="100%" class="searchPanels" style="z-index: -1">			
				<tr>
					<td  height="620px" valign="top" align="center">	
						<?PHP 
                           require_once('HCDD/EstudiosCardioNeuro.php'); ?>
					</td>
				</tr>	  	  
		</table>

	
	</div>
	<div id="tabs1-4">
		<table width="100%" class="searchPanels" style="z-index: -1">			
				<tr>
					<td height="620px" valign="top" align="center">	
						 <?PHP 
                           require_once('HCDD/EstudiosEvocadosNeuro.php'); ?>
		 			</td>
				</tr>	  	  
		</table>

	
	</div>
	<div id="tabs1-5">
		<table width="100%" class="searchPanels" style="z-index: -1">			

				<tr>
					<td height="620px" valign="top" align="center">	
						 <?PHP   
                          require_once('HCDD/ResonanciasNeuro.php'); ?>
			 		</td>
				</tr>	  	  
		</table>

	</div>
</div>

</div><!-- End demo -->
